/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = apm4lua_mem.c                                      */
/*  NOTE      =                                                    */
/*  DATE      = 2015/03/17 by yaohl                                */
/*******************************************************************/

#include <stdio.h>
#include <stdarg.h>

#if defined(FRLINUX4) || defined(FRLINUX5)
    extern "C"{
    #include <lua.h>
    }
#else
    #ifdef LIB_APM_LUAJIT
    #include <luajit-2.0/lua.hpp>
    #else
    #include <lua.hpp>
    #endif
#endif

#include "frcomm.h"
#include "frmem.h"

int memstat_set(lua_State *p_lua_handle)
{
    void *p_st_memstat = (void *)lua_touserdata(p_lua_handle, 1);
    fr_slab_set(p_st_memstat);

    return 0;
}

